/*
 * XQService.java
 */

package xq.api;

import java.io.InputStream;
import javax.xml.bind.JAXBException;

/**
 *
 * @author ThorntonRP
 */
public interface XQService {

	public <T> XQResponse<T> queryToObject(XQRequest request, Class<T> type) throws XQException, JAXBException;

	public XQResponse<InputStream[]> queryToStream(XQRequest request) throws XQException;

	public XQResponse<String> queryToString(XQRequest request) throws XQException;

	public XQResponse<String[]> queryToStringArray(XQRequest request) throws XQException;
}
